From: Ray Strode Date: Sat, 17 Sep 2011 16:36:49 +0000 (-0400) Subject: panel: drop dead code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7679 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=33718ef7a50def661cd038fd47e62c37f90f434a;p=gnome-shell.git panel: drop dead code The _userMenu variable never gets initialized anymore, so remove some code that only gets run when it's defined. https://bugzilla.gnome.org/show_bug.cgi?id=651299 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 3976025bb..b4f18efa5 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -1054,11 +1054,6 @@ Panel.prototype = { let indicator = new constructor(); this.addToStatusArea(role, indicator, i); } - - // PopupMenuManager depends on menus being added in order for - // keyboard navigation - if (this._userMenu) - this._menus.addMenu(this._userMenu.menu); }, _insertStatusItem: function(actor, position) {